#!/bin/env python
#_*_ conding:utf8 _*_

#author:swht
def login(name):
	def wapper(arg):
		print "请输入你的姓名:"
		user = raw_input("login:").strip()
		if user == 'qingbo':
			print "---Welcome To Login---"
			return name(arg)
	return wapper

@login

def task(nametest):
	print "run task",nametest

@login

def task2(nametest):
	print "run task2",nametest

task("run cmd")
#task2("run second")